﻿using System;
using System.Collections.Generic;
using HtScrum.Service.Model;
namespace HtScrum.Service.Repository
{
    public class ProjectRepositoryFake : IRepository<ProjectModel>
    {
        public void Commit(Action<bool> callback)
        {
            throw new NotImplementedException();
        }

        public void Load(Action<Data.EntityContractCollection<ProjectModel>> callback)
        {
            Data.EntityContractCollection<ProjectModel> list = new Data.EntityContractCollection<ProjectModel>();
            
            // Projetos Diuno
            list.Add(new Data.EntityContract<ProjectModel>(new ProjectModel() { Name = "Website", CustomerId = 514, Id = 1 }));
            list.Add(new Data.EntityContract<ProjectModel>(new ProjectModel() { Name = "WP", CustomerId = 514, Id = 2 }));
            list.Add(new Data.EntityContract<ProjectModel>(new ProjectModel() { Name = "SigamWeb", CustomerId = 514, Id = 3 }));

            // Projetos Fras-le
            list.Add(new Data.EntityContract<ProjectModel>(new ProjectModel() { Name = "SAP", CustomerId = 500, Id = 4 }));
            list.Add(new Data.EntityContract<ProjectModel>(new ProjectModel() { Name = "Projeto 01", CustomerId = 500, Id = 5 }));
            list.Add(new Data.EntityContract<ProjectModel>(new ProjectModel() { Name = "Projeto 02", CustomerId = 500, Id = 6 }));
            
            callback(list);
        }
    }
}
